import request from '@/utils/request.js'

export const pageApi = (taskNumb,type,status,reason,page,pageSize) =>
  request.get(`/text/pagelist?taskNumb=${taskNumb}&type=${type}&status=${status}&reason=${reason}&page=${page}&pageSize=${pageSize}`)

export const addApi = (data) =>request.post
('/text/add',data)

export const updateApi = (data) =>request.put
('/text/update',data)

export const deleteApi = (id) =>request.delete
(`/text/delete/${id}`)

